<template>
	<view>
		<view class="heighly">
			<view v-if="dataList.length">
				<view class="m-card u-m-30" v-for="(item, index) in dataList" :key="index">
					<view class="u-m-t-20" @click="nextNav('/pages/common/details?id=' + item.id)">
						<view class="u-flex u-flex-items-stretch u-font-24">
							<u--image width="100" height="100" :src="item.avatar"></u--image>
							<view class="list-infa u-flex-1 u-m-l-20">
								<view class="m-font-b u-font-32 ">{{ item.name }}</view>
								<view class="u-p-t-60">
									<text class=" list-text u-m-b-20">成交数量：{{ item.ordernum ? item.ordernum + '套' : 0 }}</text>
									<text class="list-text u-m-b-30">累计优惠金额：{{ item.yhmoney ? item.yhmoney + '万元' : 0 }}</text>
								</view>
							</view>
						</view>
						<view class="u-flex u-flex-between u-flex-items-center u-m-t-20">
							<view class="u-flex u-flex-items-center">
								<text class="u-font-24 m-c-9">满意指数：</text>
								<u-rate :count="5" v-model="item.star" :allowHalf="true"></u-rate>
								<!-- <u--image v-for="star in item.star" :key="star" width="11" height="11" :src="oss + '/mine/xir.png'"></u--image> -->
								<text class="u-m-l-20 u-font-24 m-c-9">{{ item.star }} 分</text>
							</view>
							<view class="xiazai" @click="nextNav('/pages/news/xiaoxi?id=' + item.id)">联系管家</view>
						</view>
					</view>
				</view>
			</view>
			<list-empty v-else text="暂时没有数据哟!" list="data" :listHighly="highly"></list-empty>
		</view>
		<u-back-top :scrollTop="pagescrollTop" top="200"></u-back-top>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	async onLoad() {
		this.path = 'getJialist';
		this.params = {
			...this.params,
			pnum: this.pnum
		};
		await this.getList();
		console.log(this.dataList, '管家');
	},
	methods: {}
};
</script>

<style lang="scss" scoped>
.xiazai {
	width: 147rpx;
	height: 45rpx;
	line-height: 45rpx;
	background-color: #dbb07b;
	border-radius: 40rpx;
	font-size: 24rpx;
	font-weight: bold;
	color: #fff;
	text-align: center;
}

.m-c-9 {
	color: #5a5a5a;
}
</style>
